//
//  FirstPageWillSaleTableViewCell.m
//  BSLCar
//
//  Created by 梁毅 on 15/5/24.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "FirstPageWillSaleTableViewCell.h"

@implementation FirstPageWillSaleTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self makeCellTable];
    }
    return self;
}

- (void)makeCellTable
{
    self.labelName = [[UILabel alloc]init];
    [self.contentView addSubview:self.labelName];
    
    self.labelPrice = [[UILabel alloc]init];
    [self.contentView addSubview:self.labelPrice];
    
    self.labelDate  = [[UILabel alloc]init];
    [self.contentView addSubview:self.labelDate];
    
    self.buttonMessage = [[UILabel alloc]init];
    [self.contentView addSubview:self.buttonMessage];
    
    self.mimgeview = [[UIImageView alloc]init];
    [self.contentView addSubview:self.mimgeview ];
    
    self.label = [[UILabel alloc]init];
    [self.contentView addSubview:self.label];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.labelName.frame = CGRectMake(200, 8, 200, 30);
 //   self.labelName.backgroundColor = [UIColor redColor];
   
    self.labelDate.frame = CGRectMake(200, 45, 200, 30);
  //  self.labelDate.backgroundColor = [UIColor redColor];
    
    self.labelPrice.frame = CGRectMake(200, 85, 200, 30);
  //  self.labelPrice.backgroundColor = [UIColor redColor];
    
    self.mimgeview.frame = CGRectMake(10, 10, 170, 140);
 //   self.mimgeview.backgroundColor = [UIColor yellowColor];
    
    self.buttonMessage.frame = CGRectMake(0, 120, self.bounds.size.width - 10 - 0, 30);
    self.buttonMessage.textAlignment = NSTextAlignmentRight;
    
    self.label.frame = CGRectMake(0, 152, self.bounds.size.width, 1);
    // self.buttonMessage.backgroundColor =  [UIColor yellowColor];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
